home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 22 / CU Amiga Magazine's Super CD-ROM 22 (1998)(EMAP Images)(GB)[!][issue 1998-05].iso / PowerPC / Programming / vbcc / machines / amigappc / libsrc / AmigaLib / BeginIO.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-07  |  431 b   |  25 lines

  1. /*
  2. ** libamiga.a for vbcc-Amiga-PowerPC
  3. **
  4. ** BeginIO()
  5. **
  6. ** V0.1 05-Jan-98 phx
  7. **      created
  8. */
  9.  
  10. #include <exec/io.h>
  11. #include <powerup/gcclib/powerup_protos.h>
  12.  
  13.  
  14. VOID BeginIO(struct IORequest *ior)
  15. {
  16.   struct Caos MyCaos;
  17.  
  18.   MyCaos.a1 = (ULONG)ior;
  19.   MyCaos.M68kCacheMode = IF_CACHEFLUSHALL;
  20.   MyCaos.PPCCacheMode = IF_CACHEFLUSHALL;
  21.   MyCaos.caos_Un.Offset = -30;
  22.   MyCaos.a6 = (ULONG)ior->io_Device;
  23.   PPCCallOS(&MyCaos);
  24. }
  25.